package com.franklions.nacos.example;

import com.alibaba.nacos.api.config.ConfigType;
import com.alibaba.nacos.spring.context.annotation.config.EnableNacosConfig;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author flsh
 * @version 1.0
 * @date 2023/3/13
 * @since Jdk 1.8
 */
@SpringBootApplication
@NacosPropertySource(dataId = "nacos-example", autoRefreshed = true,type = ConfigType.YAML)
@EnableNacosConfig
public class RunApplication {
    public static void main(String[] args) {
        SpringApplication.run(RunApplication.class, args);
    }
}
